var e,
  n = (e = require("@/libs/lodash")) && e.__esModule ? e : { default: e };
module.exports = {
  whoami: "Wechat MiniProgram",
  chooseMessageFile: function () {
    return new Promise(function (e, n) {
      wx.chooseMessageFile({
        count: 1,
        type: "file",
        success: function (n) {
          e(n);
        },
        fail: function (e) {
          n(e);
        },
      });
    });
  },
  requestPayment: function (e) {
    return new Promise(function (n, t) {
      wx.requestPayment({
        timeStamp: e.timeStamp,
        nonceStr: e.nonceStr,
        package: e.packageStr,
        signType: e.signType,
        paySign: e.paySign,
        success: function (e) {
          n(e);
        },
        fail: function (e) {
          t(e);
        },
      });
    });
  },
  getOpenId: function () {
    var e = wx.getStorageSync("san_main_login_info");
    return n.default.get(e, "openid", "");
  },
};
